<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div class="t_bar">
   资金概算（万元）
</div>

<table class="t_css" width="100%" border="0" cellpadding="0"
    cellspacing="1" id="fundInfo_from">
    <tr class="t_tr">
        <td align="center" width="25%" rowspan="2">资金来源概算</td>
        <td class="TblHead" align="center" width="15%" rowspan="2">概算金额</td>
        <td class="TblHead" align="center" width="60%"  colspan="3">其中</td>
    </tr>
    <tr>
         <td class="TblHead" align="center" ><span name="budget/select_yea1">${statYear-2}</span>年</td>
        <td class="TblHead" align="center" ><span name="budget/select_yea2">${statYear-1}</span>年</td>
        <td class="TblHead" align="center" ><span name="budget/select_yea3">${statYear}</span>年</td>
        <%-- 
        <td class="TblHead" align="center" ><span name="budget/select_yea1"><x:out select="$xmlData/data/budget/select_yea1"/></span>年</td>
        <td class="TblHead" align="center" ><span name="budget/select_yea2"><x:out select="$xmlData/data/budget/select_yea2"/></span>年</td>
        <td class="TblHead" align="center" ><span name="budget/select_yea3"><x:out select="$xmlData/data/budget/select_yea3"/></span>年</td>--%>
    </tr>
    <tr>
        <td align="left">1、省财政拨款</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail_from/invest[00]@invest_code" value="00" />
            <input type="hidden" name="budget/invest_detail_from/invest[00]/name" value="1、省财政拨款" />
            
            <input type="text"  name="budget/invest_detail_from/invest[00]/total_each" id="total_each_0"
                 disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_each"/>" 
                class=" gray valueEqual:total_each_0:total_fund_19" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
                label="资金来源概算-->省财政拨款-->概算金额"/>
            
            <%-- <input type="hidden" name="budget/invest_detail_from/invest[00]/total_investfrom" id="total_investfrom_0"
                    label="省财政拨款-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_investfrom" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                   onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');"
                   /> --%>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[00]/total_invest_yea1" id="total_invest_yea1_0"
                     style="text-align:right; width:80%;" label="资金来源概算-->第一年-->省财政拨款"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_invest_yea1" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[00]/total_invest_yea2" id="total_invest_yea2_0"
                     style="text-align:right; width:80%;" label="资金来源概算-->第二年-->省财政拨款"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_invest_yea2" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[00]/total_invest_yea3" id="total_invest_yea3_0"
                     style="text-align:right; width:80%;" label="资金来源概算-->第三年-->省财政拨款"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_invest_yea3" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
    </tr>
    <tr>
        <td align="left">2、市（县）财政拨款</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail_from/invest[01]@invest_code" value="01" />
            <input type="hidden" name="budget/invest_detail_from/invest[01]/name" value="2、市（县）财政拨款" />
            
            <input type="text" name="budget/invest_detail_from/invest[01]/total_each" id="total_each_1"
                 disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_each"/>" 
                class="gray " onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
                label="市（县）财政拨款-->概算金额"/>
            
            <%-- <input type="hidden" name="budget/invest_detail_from/invest[01]/total_investfrom" id="total_investfrom_1"
                    label="市（县）财政拨款-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_investfrom" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');"
                   /> --%>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[01]/total_invest_yea1" id="total_invest_yea1_1"
                     style="text-align:right; width:80%;" label="资金来源概算-->第一年-->市（县）财政拨款"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_invest_yea1" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[01]/total_invest_yea2" id="total_invest_yea2_1"
                     style="text-align:right; width:80%;" label="资金来源概算-->第二年-->市（县）财政拨款"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_invest_yea2" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[01]/total_invest_yea3" id="total_invest_yea3_1"
                     style="text-align:right; width:80%;" label="资金来源概算-->第三年-->市（县）财政拨款"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_invest_yea3" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
    </tr>
    <tr>
        <td align="left">3、单位自筹经费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail_from/invest[02]@invest_code" value="02" />
            <input type="hidden" name="budget/invest_detail_from/invest[02]/name" value="3、单位自筹经费" />
            
            <input type="text" name="budget/invest_detail_from/invest[02]/total_each" id="total_each_2"
                disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_each"/>" 
                class="gray " onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
                label="资金来源概算-->单位自筹经费-->概算金额"/>
            
            <%-- <input type="text" class="" name="budget/invest_detail_from/invest[02]/total_investfrom" id="total_investfrom_2"
                    label="单位自筹经费-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_investfrom" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');"
                   /> --%>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[02]/total_invest_yea1" id="total_invest_yea1_2"
                     style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_invest_yea1" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)" label="资金来源概算-->第一年-->单位自筹经费"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[02]/total_invest_yea2" id="total_invest_yea2_2"
                     style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_invest_yea2" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)" label="资金来源概算-->第二年-->单位自筹经费"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[02]/total_invest_yea3" id="total_invest_yea3_2"
                     style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_invest_yea3" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)" label="资金来源概算-->第三年-->单位自筹经费"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
    </tr>
    <tr>
        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：银行贷款</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail_from/invest[03]@invest_code" value="03" />
            <input type="hidden" name="budget/invest_detail_from/invest[03]/name" value="其中：银行贷款" />
            
            <input type="text" name="budget/invest_detail_from/invest[03]/total_each" id="total_each_3"
                 disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_each"/>" 
                class="gray " onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
                label="资金来源概算-->其中：银行贷款-->概算金额"/>
            
            <%-- <input type="text" class="" name="budget/invest_detail_from/invest[03]/total_investfrom" id="total_investfrom_3"
                   class="valueGreatEqual:total_investfrom_2:total_investfrom_3" label="其中：银行贷款-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_investfrom" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');"
                   /> --%>
        </td>
        <td align="center">
            <input type="text" name="budget/invest_detail_from/invest[03]/total_invest_yea1" id="total_invest_yea1_3"
                     style="text-align:right; width:80%;"  class=" valueGreatEqual:total_invest_yea1_2:total_invest_yea1_3"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_invest_yea1" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"  label="资金来源概算-->第一年-->其中：银行贷款"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" name="budget/invest_detail_from/invest[03]/total_invest_yea2" id="total_invest_yea2_3"
                     style="text-align:right; width:80%;" class=" valueGreatEqual:total_invest_yea2_2:total_invest_yea2_3"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_invest_yea2" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)" label="资金来源概算-->第二年-->其中：银行贷款"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text"  name="budget/invest_detail_from/invest[03]/total_invest_yea3" id="total_invest_yea3_3"
                     style="text-align:right; width:80%;" class=" valueGreatEqual:total_invest_yea3_2:total_invest_yea3_3"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_invest_yea3" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)" label="资金来源概算-->第三年-->其中：银行贷款"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
    </tr>
    <tr>
        <td align="left">4、其它经费来源</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail_from/invest[04]@invest_code" value="04" />
            <input type="hidden" name="budget/invest_detail_from/invest[04]/name" value="4、其它经费来源" />
            
            <input type="text"  name="budget/invest_detail_from/invest[04]/total_each" id="total_each_4"
                disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_each"/>" 
                class="gray valueGreatEqual:total_investfrom_4:total_each_4" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
                label="其它经费来源-->概算金额"/>
            
            <%-- <input type="text" class="" name="budget/invest_detail_from/invest[04]/total_investfrom" id="total_investfrom_4"
                    label="其它经费来源-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_investfrom" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');"
                   /> --%>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[04]/total_invest_yea1" id="total_invest_yea1_4"
                     style="text-align:right; width:80%;"  label="资金来源概算-->第一年-->其它经费来源"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_invest_yea1" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[04]/total_invest_yea2" id="total_invest_yea2_4"
                     style="text-align:right; width:80%;"  label="资金来源概算-->第二年-->其它经费来源"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_invest_yea2" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail_from/invest[04]/total_invest_yea3" id="total_invest_yea3_4"
                     style="text-align:right; width:80%;" label="资金来源概算-->第三年-->其它经费来源"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_invest_yea3" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                             countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2','each_2');
                             countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
                   />
        </td>
    </tr>
    <tr>
        <td align="center"><strong>来源合计</strong></td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail_from/invest[05]@invest_code" value="05" />
            <input type="hidden" name="budget/invest_detail_from/invest[05]/name" value="来源合计" />
            <input type="text" name="budget/invest_detail_from/invest[05]/total_investfrom" id="total_investfrom_5"
                   class=" gray valueEqual:total_investfrom_5:total_invest_19" disabled label="资金来源概算-->来源合计-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_investfrom" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                   />
        </td>
        <td align="center">
            <input type="text" name="budget/invest_detail_from/invest[05]/total_invest_yea1" id="total_invest_yea1_5"
                   class=" gray" disabled label="直接费用-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_invest_yea1" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                   />
        </td>
        <td align="center">
            <input type="text" name="budget/invest_detail_from/invest[05]/total_invest_yea2" id="total_invest_yea2_5"
                   class="gray " disabled label="直接费用-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_invest_yea2" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                   />
        </td>
        <td align="center">
            <input type="text"  name="budget/invest_detail_from/invest[05]/total_invest_yea3" id="total_invest_yea3_5"
                   class="gray " disabled label="直接费用-->概算金额"  style="text-align:right; width:80%;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_invest_yea3" />" 
                   onfocus="InitInput.setNumber(this,9,2,2)"
                   />
        </td>
    </tr>
</table>    

<table class="t_css" width="100%" border="0" cellpadding="0"
    cellspacing="1" id="fundInfo">
    <tr class="t_tr">
        <td align="center" width="25%">资金支出概算</td>
        <td class="TblHead" align="center" width="20%">概算金额</td>
         <td class="TblHead" align="center" width="20%">其中：省财政拨款</td>
         <td class="TblHead" align="center"width="35%">备注</td>  
    </tr>
    <tr >
        <td align="left" style=""><strong>一、直接费用</strong></td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[00]@invest_code" value="00" />
            <input type="hidden" name="budget/invest_detail/invest[00]/name" value="一、直接费用" />
            <input type="text"  name="budget/invest_detail/invest[00]/total_invest" id="total_invest_0"
                   class="gray " disabled label="直接费用-->概算金额"  style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_invest" />" />
        </td>
        <td align="center">
            <input type="text" name="budget/invest_detail/invest[00]/total_fund" id="total_fund_0"
                    class="gray " disabled label="直接费用-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[00]/total_allot" id="total_allot_0" 
                    label="直接费用-->备注"  maxlength="50"
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_allot" />" />
        </td>
        <!-- <td align="center">/</td> -->
    </tr>
    <tr >
        <td align="left" style="padding-left:20px">1、设备费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[01]@invest_code" value="01" />
            <input type="hidden" name="budget/invest_detail/invest[01]/name" value="1、设备费" />
            <input type="text"  name="budget/invest_detail/invest[01]/total_invest" id="total_invest_1" 
                   class="gray " disabled label="设备费-->概算金额"  style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_invest" />" />
        </td>
        <td align="center">
            <input type="text"  name="budget/invest_detail/invest[01]/total_fund" id="total_fund_1"
                    class="gray " disabled label="设备费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[01]/total_allot" id="total_allot_1" 
                    label="设备费-->备注"  maxlength="50"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_allot" />" 
            />
        </td>
    
    </tr>
    <tr >
        <td align="left" style="padding-left:40px">（1）购置设备费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[02]@invest_code" value="02" />
            <input type="hidden" name="budget/invest_detail/invest[02]/name" value="（1）购置设备费" />
            <input type="text"  name="budget/invest_detail/invest[02]/total_invest" id="total_invest_2"
                     onfocus="InitInput.setNumber(this,9,2,2)" class=" valueGreatEqual:total_invest_2:total_fund_2"
                    label="购置设备费-->概算金额"  style="text-align:right; width:150px;" 
                    onchange="countFundAuto('total_','invest_2,invest_3,invest_4','invest_1');
                     countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');" 
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_invest" />"/>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[02]/total_fund" id="total_fund_2"
                    label="购置设备费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                     onchange="countFundAuto('total_','fund_2,fund_3,fund_4','fund_1');
                     countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                   countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[02]/total_allot" id="total_allot_2"  
                    label="购置设备费-->备注"  maxlength="50"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_allot" />" />
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:40px">（2）自制设备费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[03]@invest_code"  value="03">
            <input type="hidden" name="budget/invest_detail/invest[03]/name" value="（2）自制设备费">
            <input type="text" name="budget/invest_detail/invest[03]/total_invest" id="total_invest_3"
                    onfocus="InitInput.setNumber(this,9,2,2)" class=" valueGreatEqual:total_invest_3:total_fund_3"
                    label="自制设备费-->概算金额"  style="text-align:right; width:150px;"
                     onchange="countFundAuto('total_','invest_2,invest_3,invest_4','invest_1');
                     countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                   countFundAuto('total_','invest_0,invest_15','invest_19');"
                     value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_invest" />"/>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[03]/total_fund" id="total_fund_3"
                    label="自制设备费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                    onchange="countFundAuto('total_','fund_2,fund_3,fund_4','fund_1');
                     countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                   countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[03]/total_allot" id="total_allot_3"
                    label="自制设备费-->备注"  maxlength="50" class=""
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_allot" />"/>
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:40px">（3）设备改造与租赁</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[04]@invest_code"  value="04">
            <input type="hidden" name="budget/invest_detail/invest[04]/name" value="（3）设备改造与租赁">
            <input type="text" name="budget/invest_detail/invest[04]/total_invest" id="total_invest_4" 
                     onfocus="InitInput.setNumber(this,9,2,2)" class=" valueGreatEqual:total_invest_4:total_fund_4"
                    label="设备改造与租赁-->概算金额"  
                     onchange="countFundAuto('total_','invest_2,invest_3,invest_4','invest_1');
                     countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                   countFundAuto('total_','invest_0,invest_15','invest_19');"
                    style="text-align:right; width:150px;" 
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_invest" />"    />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[04]/total_fund" id="total_fund_4"
                    label="设备改造与租赁-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                    onchange="countFundAuto('total_','fund_2,fund_3,fund_4','fund_1');
                     countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                   countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[04]/total_allot" id="total_allot_4"  
                  label="设备改造与租赁-->备注" maxlength="50"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_allot" />"  />
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:20px">2、材料费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[05]@invest_code"  value="05">
            <input type="hidden" name="budget/invest_detail/invest[05]/name" value="2、材料费">
            <input type="text"  name="budget/invest_detail/invest[05]/total_invest" id="total_invest_5" 
                    label="材料费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_5:total_fund_5"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_invest" />" 
                   onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[05]/total_fund" id="total_fund_5"
                    label="材料费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                          onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[05]/total_allot" id="total_allot_5" 
                  maxlength="50" label="材料费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_allot" />"/>
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:20px">3、测试化验加工费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[06]@invest_code"  value="06">
            <input type="hidden" name="budget/invest_detail/invest[06]/name" value="3、测试化验加工费">
            <input type="text" name="budget/invest_detail/invest[06]/total_invest" id="total_invest_6" 
                    label="测试化验加工费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)" 
                   style="text-align:right; width:150px;" class=" valueGreatEqual:total_invest_6:total_fund_6"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_invest" />" 
                  onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');" />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[06]/total_fund" id="total_fund_6"
                    label="测试化验加工费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                          onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                                 countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[06]/total_allot"  id="total_allot_6"  
                   maxlength="50" label="测试化验加工费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_allot" />"/>
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:20px">4、燃料动力费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[07]@invest_code"  value="07">
            <input type="hidden" name="budget/invest_detail/invest[07]/name" value="4、燃料动力费">
            <input type="text"  name="budget/invest_detail/invest[07]/total_invest" id="total_invest_7" 
                    label="燃料动力费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)" class=" valueGreatEqual:total_invest_7:total_fund_7"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_invest" />" 
                  onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[07]/total_fund" id="total_fund_7"
                    label="燃料动力费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                          onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                                 countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[07]/total_allot"  id="total_allot_7" 
                   maxlength="50" label="燃料动力费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_allot" />"/>
        </td>
    </tr>
    
    
    
    <tr >
        <td align="left" style="padding-left:20px">5、差旅/会议/国际合作交流费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[08]@invest_code"  value="08">
            <input type="hidden" name="budget/invest_detail/invest[08]/name" value="5、差旅/会议/国际合作交流费">
            <input type="text"  name="budget/invest_detail/invest[08]/total_invest" id="total_invest_8" 
                    label="差旅/会议/国际合作交流费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)" class=" valueGreatEqual:total_invest_8:total_fund_8"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_invest" />" 
                   onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[08]/total_fund" id="total_fund_8"
                    label="差旅/会议/国际合作交流费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[08]/total_allot"  id="total_allot_08" 
                   maxlength="50" label="差旅/会议/国际合作交流费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_allot" />"/>
        </td>
    </tr>
    <%-- <tr >
        <td align="left" style="padding-left:20px">6、会议费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[09]@invest_code"  value="09">
            <input type="hidden" name="budget/invest_detail/invest[09]/name" value="6、会议费">
            <input type="text" name="budget/invest_detail/invest[09]/total_invest" id="total_invest_9" 
                    label="会议费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_9:total_fund_9"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_invest" />" 
                  onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_18');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[09]/total_fund" id="total_fund_9"
                    label="会议费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_18');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[09]/total_allot"  id="total_allot_9"  
                   maxlength="50" label="会议费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_allot" />"/>
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:20px">7、国际合作与交流费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[10]@invest_code"  value="10">
            <input type="hidden" name="budget/invest_detail/invest[10]/name" value="7、国际合作与交流费">
            <input type="text"  name="budget/invest_detail/invest[10]/total_invest" id="total_invest_10" 
                    label="国际合作与交流费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_10:total_fund_10"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_invest" />" 
                   onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_18');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[10]/total_fund" id="total_fund_10"
                    label="国际合作与交流费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_18');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[10]/total_allot" id="total_allot_10"  
                   maxlength="50" label="国际合作与交流费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_allot" />"/>
        </td>
    </tr>
   --%>
  
  
  
  
    <tr >
        <td align="left" style="padding-left:20px">6、信息费（出版/文献/信息传播<br/>&nbsp;&nbsp;&nbsp;&nbsp;/知识产权事物费等）</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[11]@invest_code"  value="11">
            <input type="hidden" name="budget/invest_detail/invest[11]/name" value="8、信息费（出版/文献/信息传播/知识产权事物费等）">
            <input type="text" name="budget/invest_detail/invest[11]/total_invest" id="total_invest_11" 
                    label="信息费（出版/文献/信息传播/知识产权事务费等）-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)" 
                   style="text-align:right; width:150px;" class=" valueGreatEqual:total_invest_11:total_fund_11"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_invest" />" 
                    onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[11]/total_fund" id="total_fund_11"
                    label="信息费（出版/文献/信息传播/知识产权事务费等）-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" name="budget/invest_detail/invest[11]/total_allot" id="total_allot_11" 
                   maxlength="50" label="信息费（出版/文献/信息传播/知识产权事务费等）-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_allot" />"/>
        </td>
    </tr>
    
    
    <tr >
        <td align="left" style="padding-left:20px">7、专家咨询费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[12]@invest_code"  value="12">
            <input type="hidden" name="budget/invest_detail/invest[12]/name" value="9、专家咨询费">
            <input type="text" name="budget/invest_detail/invest[12]/total_invest" id="total_invest_12" 
                    label="专家咨询费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_12:total_fund_12"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_invest" />" 
                onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[12]/total_fund" id="total_fund_12"
                    label="专家咨询费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" id="total_allot_12"  name="budget/invest_detail/invest[12]/total_allot" 
                   maxlength="50" label="专家咨询费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_allot" />"/>
        </td>
    </tr>
    
    <tr >
        <td align="left" style="padding-left:20px">8、劳务费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[13]@invest_code"  value="13">
            <input type="hidden" name="budget/invest_detail/invest[13]/name" value="10、劳务费">
            <input type="text" name="budget/invest_detail/invest[13]/total_invest" id="total_invest_13" 
                    label="劳务费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)" 
                   style="text-align:right; width:150px;" class=" valueGreatEqual:total_invest_13:total_fund_13"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_invest" />" 
                  onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[13]/total_fund" id="total_fund_13"
                    label="劳务费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" id="total_allot_13"  name="budget/invest_detail/invest[13]/total_allot" 
                   maxlength="50" label="劳务费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_allot" />"/>
        </td>
    </tr>
    
    <tr >
        <td align="left" style="padding-left:20px">9、其他支出</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[14]@invest_code"  value="14">
            <input type="hidden" name="budget/invest_detail/invest[14]/name" value="11、其他支出">
            <input type="text" name="budget/invest_detail/invest[14]/total_invest" id="total_invest_14" 
                    label="其他支出-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_14:total_fund_14"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_invest" />" 
                   onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14','invest_0'); 
                     countFundAuto('total_','invest_0,invest_15','invest_19');"  />
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[14]/total_fund" id="total_fund_14"
                    label="其他支出-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_1,fund_5,fund_6,fund_7,fund_8,fund_9,fund_10,fund_11,fund_12,fund_13,fund_14','fund_0'); 
                             countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" id="total_allot_14"  name="budget/invest_detail/invest[14]/total_allot" 
                   maxlength="50" label="其他支出-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_allot" />"/>
        </td>
    </tr>
    
    <tr >
        <td align="left" style=""><strong>二、间接费用</strong></td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[15]@invest_code"  value="15">
            <input type="hidden" name="budget/invest_detail/invest[15]/name" value="二、间接费用">
            <input type="text"  name="budget/invest_detail/invest[15]/total_invest" id="total_invest_15" 
                   class="gray " disabled label="间接费用-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)" 
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_invest" />" />
        </td>
        <td align="center">
            <input type="text"  name="budget/invest_detail/invest[15]/total_fund" id="total_fund_15"
                    class="gray " disabled label="间接费用-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" id="total_allot_15"  name="budget/invest_detail/invest[15]/total_allot" 
                   maxlength="50" label="间接费用-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_allot" />"/>
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:20px">1、管理费</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[16]@invest_code"  value="16">
            <input type="hidden" name="budget/invest_detail/invest[16]/name" value="1、管理费">
            <input type="text"  name="budget/invest_detail/invest[16]/total_invest" id="total_invest_16" 
                    label="管理费-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_16:total_fund_16"
                    onchange="countFundAuto('total_','invest_16,invest_17,invest_18','invest_15');countFundAuto('total_','invest_0,invest_15','invest_19');"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='16']/total_invest" />"/>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[16]/total_fund" id="total_fund_16"
                    label="管理费-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_16,fund_17,fund_18','fund_15');countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='16']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" id="total_allot_16"  name="budget/invest_detail/invest[16]/total_allot" 
                   maxlength="50" label="管理费-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='16']/total_allot" />"/>
        </td>
    </tr>
    
    <tr >
        <td align="left" style="padding-left:20px">2、绩效支出</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[17]@invest_code"  value="17">
            <input type="hidden" name="budget/invest_detail/invest[17]/name" value="2、绩效支出">
            <input type="text" name="budget/invest_detail/invest[17]/total_invest" id="total_invest_17" 
                    label="绩效支出-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_17:total_fund_17"
                    onchange="countFundAuto('total_','invest_16,invest_17,invest_18','invest_15');countFundAuto('total_','invest_0,invest_15','invest_19');"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='17']/total_invest" />"/>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[17]/total_fund" id="total_fund_17"
                    label="绩效支出-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_16,fund_17,fund_18','fund_15');countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='17']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" id="total_allot_17"  name="budget/invest_detail/invest[17]/total_allot" 
                   maxlength="50" label="绩效支出-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='17']/total_allot" />"/>
        </td>
    </tr>
    <tr >
        <td align="left" style="padding-left:20px">3、其他</td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[18]@invest_code"  value="18">
            <input type="hidden" name="budget/invest_detail/invest[18]/name" value="3、其他">
            <input type="text" name="budget/invest_detail/invest[18]/total_invest" id="total_invest_18" 
                    label="其他-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)"  class=" valueGreatEqual:total_invest_17:total_fund_17"
                    onchange="countFundAuto('total_','invest_16,invest_17,invest_18','invest_15');countFundAuto('total_','invest_0,invest_15','invest_19');"
                   style="text-align:right; width:150px;" 
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='18']/total_invest" />"/>
        </td>
        <td align="center">
            <input type="text" class="" name="budget/invest_detail/invest[18]/total_fund" id="total_fund_18"
                    label="其他-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                     onfocus="InitInput.setNumber(this,9,2,2)"
                         onchange="countFundAuto('total_','fund_16,fund_17,fund_18','fund_15');countFundAuto('total_','fund_0,fund_15','fund_19');" class=""
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='18']/total_fund" />" />
        </td>
        <td align="center">
            <input type="text" style="width:200px" id="total_allot_18"  name="budget/invest_detail/invest[18]/total_allot" 
                   maxlength="50" label="其他-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='18']/total_allot" />"/>
        </td>
    </tr>
    <tr >
        <td align="center" ><strong>支出合计</strong></td>
        <td align="center">
            <input type="hidden" name="budget/invest_detail/invest[19]@invest_code"  value="19">
            <input type="hidden" name="budget/invest_detail/invest[19]/name" value="支出合计">
            <input type="text" name="budget/invest_detail/invest[19]/total_invest" id="total_invest_19" 
                    label="资金支出概算-->支出合计-->概算金额"  onfocus="InitInput.setNumber(this,9,2,2)" 
                   style="text-align:right; width:150px;" 
                   class="gray " disabled
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='19']/total_invest" />" />
        </td>
        <td align="center">
            <input type="text" class="gray "  name="budget/invest_detail/invest[19]/total_fund" id="total_fund_19"
                    disabled label="资金支出概算-->支出合计-->其中：省财政拨款"  style="text-align:right; width:150px;" 
                    value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='19']/total_fund" />" />
        </td>
        <td align="center">
        <input type="text"  style="width:200px" id="total_allot_19"  name="budget/invest_detail/invest[19]/total_allot" 
                   maxlength="50" label="资金支出概算-->支出合计-->备注"
                   value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='19']/total_allot" />"/>
        </td>
    </tr>
</table>


<%-- <table  id="tblMileStones1" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
        <tr>
            <td width="45%">特别说明：（购置主要仪器设备须列出清单,以附件形式上传，上传文件格式为PDF格式） </td>
            
            <td  width="55%" align="center" style="WORD-WRAP: break-word">
                <c:set var="file_code"><x:out select="$xmlData/data/content/file_code" /></c:set>
                <div id="proof_content1" style=" float:left; width: 400px;"  >       <c:if test="${empty file_code }">display:none;</c:if>
                    <div  id="proof_file1" style="<c:if test="${empty file_code}">display:none;</c:if>">
                        <input type="hidden" id="file_code1" name="content/file_code" class="" label="备注-->产学研合作的项目请附产学研合作协议" value="<x:out select="$xmlData/data/content/file_code" />" />
                        <a id="file_url1" class="link_x" href="/egrantweb/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/content/file_code" />" style="cursor: pointer;"> <span name="content/file_name" id="file_name1" style="color: blue;"><x:out select="$xmlData/data/content/file_name" /></span></a>
                        (上传时间<span name="content/file_date" id="file_date1"><iris:xout select="$xmlData/data/content/file_date" /></span>)
                        <a href="###" class="link_x" id="sy_delConent1" onclick="delContent_1('proof_file1',1)">删除</a>
                    </div>
                </div>
                <input id="file1" type="file" name="filedata" />
            </td>
            <!-- <td width="20%" align="center">
            </td> -->
        </tr>
    </table> --%>

<script type="text/javascript">
    $(function(){
        changeCss();
        fileInit_1("tblMileStones1","PDF",null,"{'PDF':'20480'}");
        $("#tblMileStones1").find(".file").hide();
    });
    function changeCss() {
            $("table.t_css").each(function(){
                $(this).find("tr:even").removeClass().addClass("li_1");
                $(this).find("tr:odd").removeClass().addClass("li_2");
            });
            changeCss1("fundInfo","tblMileStones1");
        }
        function changeCss1(id1,id2) {
            if($("#"+id1+" tr:last").attr("class")=="li_1"){
                $("#"+id2+" tr").removeClass("li_1").addClass("li_2");
            }else{
                $("#"+id2+" tr").removeClass("li_2").addClass("li_1");
            }
        }
        
        
        
        function uploadfile(index,i){
            if(2==index){
                $("#proof_file_data").click();
                
            }
            else
            $("#card_file").click();
        }
        /* function show(index){
            $("#kepu").find("#proof_file"+index).show();
        } */
        function fileInit_1(tableId, type, width, validateJson) {
             var imgres="";
            
             if(locale=="en_US"){
                imgres="Upload_EN.gif";
                
            }else{
                imgres="Upload_2.gif";
                
            }
            $("#" + tableId).find(":file").filestyle({
                image : res + "/images/"+imgres,
                imageheight : 25,
                imagewidth : 56,
                width : width
            });  
            $("#" + tableId).find(":file").not("#filedata\\[0\\]").each(function(i) {
                $(this).change(function() {
                    var str = $(this).attr("id");
                    var index = str.charAt(str.length - 1);
                    showFileName_1($(this), tableId, type, validateJson,index);
                });
            });
        }
        
        function showFileName_1(obj, tableId, type, validateJson,index) {
            var max = null;
            var fileTblId=null;// 文件列表的表格id

            fileTblId=tableId;
            var filedata = obj.val();
            if (filedata == '')
                return;
            else if(max!=null && $.isNumeric(max) && fileTblId!=null && $("#"+fileTblId+" tr:gt(1)").length>=max){
                var label="";
                if($("#"+fileTblId).attr("label")!=null)
                    label=$("#"+fileTblId).attr("label");
                
                scmWarn(label+messageTip.canNotUploadMoreThan+max+messageTip.files1);
                return;
            } else {
                var fileName = filedata.substring(filedata.replace(/\\/g, '/')
                        .lastIndexOf('/') + 1);
                var end = fileName.substring(fileName.lastIndexOf(".") + 1,
                        fileName.length).toUpperCase();
                if (type.indexOf(end) < 0) {
                    scmWarn(messageTip.pleaseUpload + type + messageTip.files2, "100px");
                    return;
                }
            }

            $("#" + tableId + " .file").val(fileName);
            ajaxFileUpload_1(obj,"orgattach", tableId, type, max, validateJson,index);
        }
        
        function ajaxFileUpload_1(obj,type, tblId, filetype, max, validateJson,index) {
            irisAjaxFileUpload_1(obj,type, tblId, filetype, max, validateJson,index);
        }
        
        function uploadSuccess_1(obj,data, tableId, filetype,index){
            $("#"+tableId).find("#file_code"+index).val(data[data.length-1].fileCode);
            $("#"+tableId).find("#file_name"+index).text(data[data.length-1].fileName);
            $("#"+tableId).find("#file_url"+index).attr("href", downloadPath + data[data.length-1].fileCode);
            $("#proof_file"+index).show();
            $("#sy_delConent"+index).show();
            
/*              var fileDate = $("#" + tableId).find("span[id='file_date'"+index+"]");// 上传时间对象
*/              
                var fileDate = $("#" + tableId).find("#file_date"+index);// 上传时间对象
                var nowTime = showLocale(new Date());
            fileDate.text(nowTime);
            $("#"+tableId).find("#"+index).show();
        }
        
        function irisAjaxFileUpload_1(obj,type, tableId, fileType, max, validateJson,index) {
            if (type == null || type == '') {
                scmWarn(messageTip.pleaseEnterTypeOfAttachment);
                return;
            }
            $("#"+tableId+" input[type='file']").not(obj).each(function(){
                this.outerHTML=this.outerHTML.replace(/(value=\").+\"/i,"$1\""); 
            });

            
            prcWin.openWin();// 打开遮罩层
            $.ajaxFileUpload({
                url : ctx + '/file/ajax-fileupload',// 请求地址
                secureuri : false,// 一般设置为false
                fileElementId : 'filedata',// 文件的id属性
                limitSize : '10',// 允许上传的文件大小,单位M
                allowType : '',// 允许上传的文件类型.
                data : {
                    'type' : type,
                    'validateJson':validateJson
                },
                tableId : tableId,// tableID
                dataType : 'json',// 返回值类型
                success : function(data, status) // 服务器成功响应处理函数
                {
                    if (data.result == 'error') {
                        scmWarn(data.msg);
                    } else {
                        
                        uploadSuccess_1(obj,data, tableId, fileType,index);
                        
                        
                        $("#"+tableId).find(":file").not("#filedata\\[0\\]").each(function(i) {
                            fileType="JPG，PNG，DOC，WPS，DOCX，PDF，XLS，XLSX，TIFF，RAR";
                            validateJson="{'JPG':'20480','PNG':'20480','DOC':'20480','WPS':'20480','DOCX':'20480','PDF':'20480','XLS':'20480','XLSX':'20480','TIFF':'20480','RAR':'20480'}";
                            $(this).unbind("change");
                            $(this).change(function() {
                                var str = $(this).attr("id");
                                var index = str.charAt(str.length - 1);
                                 showFileName_1($(this), tableId, fileType, validateJson,index); 
                            });
                        });
                    }
                    prcWin.closeWin();// 关闭遮罩层
                },
                error : function(data, status, e)// 服务器响应失败处理函数
                {
                    $("#"+tableId+" input[type='file']").each(function(j) {
                        this.outerHTML=this.outerHTML.replace(/(value=\").+\"/i,"$1\""); 
                    });
                    

                    $("#"+tableId).find(":file").not("#filedata\\[0\\]").each(function(i) {
                        fileType="JPG，PNG，DOC，WPS，DOCX，PDF，XLS，XLSX，TIFF，RAR";
                        validateJson="{'JPG':'20480','PNG':'20480','DOC':'20480','WPS':'20480','DOCX':'20480','PDF':'20480','XLS':'20480','XLSX':'20480','TIFF':'20480','RAR':'20480'}";
                        $(this).unbind("change");
                        $(this).change(function() {
                            showFileName_1($(this), "mainGoodsInfo", fileType, validateJson,index);
                        });
                    });
                    if (data && data.responseText && data.responseText.indexOf('413') > -1) {
				scmError("上传的文件超过限制大小！");
			} else {
				scmError(status);
			}
                    prcWin.closeWin();// 关闭遮罩层
                },
                complete:function()
                {
                    prcWin.closeWin();// 关闭遮罩层
                }
            });

        }
        
        function countFundAuto(idStart, countStr, totalStr) {
    		var indexs = countStr.split(",");
    		var count = 0;
    		for ( var i = 0; i < indexs.length; i++) {
    			var fund = $("#" + idStart + indexs[i]).val();
    			if (!$.isNumeric(fund))
    				fund = "0";
    			count = ((parseFloat(count)*10000 + parseFloat(fund)*10000)/10000).toFixed(4);
    		}
    		count = formatNumberAuto(count.toString(), 9, 4, 2);// 格式化金额
    		//add by cg 扩展：对于多个输入框所求得的和，同时赋给某几个文本框
    		var totalStrArr = totalStr.split(",");
    		var totalId;
    		for(var i = 0;i < totalStrArr.length; i++ ) {
    			totalId = totalStrArr[i];
    			
    		$("#" + idStart + totalId).val(count);
    		}
    	}
    		
        function delContent_1(tableId,index) {
            if (confirm("你确定要删除该附件？")) {
                /* $("#" + tableId).find("input[id='file_code']").val("");// 清空文件名
                $("#" + tableId).find("span[id='file_date']").text("");// 清空文件code
                $("#" + tableId).find("span[id='file_name']").text("");// 清空文件上传日期
                $("#"+tableId).find("#proof_content").hide(); */
                
                $("#" + tableId).find("#file_code"+index).val("");// 清空文件名
                $("#" + tableId).find("#file_date"+index).text("");// 清空文件code
                $("#" + tableId).find("#file_name"+index).text("");// 清空文件上传日期
                $("#"+tableId).find("#proof_content"+index).hide();
                
                $("#sy_delConent"+index).hide();
                $("#file"+index).val("");
                $("#proof_file"+index).hide();
                
                /* $("#" + tableId).find("#proof_file"+index).hide(); */
                
            }
        }   
        
</script>